﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;

namespace SistemaChamados.App_Code.DAO.QueryManager.Behavior
{
    public class ConnectionBehaviorFactory
    {
        public static ConnectionBehavior CLOSE_AFTER_EXECUTION = new ConnectionBehavior(CommandBehavior.CloseConnection);
        public static ConnectionBehavior DO_NOTHING_CONNECTION = new ConnectionBehavior(CommandBehavior.Default);

        public static ConnectionBehavior getACloseConnectionBehavior()
        {
            return CLOSE_AFTER_EXECUTION;
        }

        public static ConnectionBehavior getADefaultConnectionBehavior()
        {
            return DO_NOTHING_CONNECTION;
        }
    }
}